package com.program.facesigninsystem.dao;

import com.program.facesigninsystem.entity.SignInCourse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ISignInCourseDao {
    void addNewCourse(
            @Param("ccid") String ccid,
            @Param("name") String name,
            @Param("week") String week,
            @Param("section") String section,
            @Param("uid") String uid,
            @Param("createtime") String createtime,
            @Param("signinclass_id") String signinclass_id,
            @Param("year") String year,
            @Param("semester") String semester
    );
    List<SignInCourse> selectbyuid(
        @Param("uid") String uid
    );

    void deleteCouByccid(
      @Param("ccid") String ccid
    );

    SignInCourse selectbyccid(
            @Param("ccid") String ccid
    );

    List<String> selectCcidByConditions(@Param("year") String year,@Param("semester") String semester,@Param("weeks") List<String> weeks,@Param("sections") List<String> sections);
}
